﻿using BarStockManager.DAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BarStockManager
{
    class Program
    {
        static void Main(string[] args)
        {
            using (var repo = new DrinkRepository())
            {
                repo.AddDrink(new Model.Drink()
                {
                    Id = Guid.NewGuid(),
                    Name = "Vodka",
                    Volume = 0.5F,
                    Price = 3000,
                    Cost = 2500
                });

                repo.AddDrink(new Model.Drink()
                {
                    Id = Guid.NewGuid(),
                    Name = "Beer",
                    Volume = 0.33F,
                    Price = 800,
                    Cost = 300
                });

                //repo.Save();

                var drinks = repo.GetDrinks();

                foreach (var drink in drinks)
                {
                    System.Console.WriteLine(drink);
                }
            }
        }
    }
}
